COM AT^SCNI: Output call number information
COM
COM COM Used variables:
COM PrimaryMobilePhoneNumber
COM SecondaryPhoneNumber
COM PhoneNumber3
COM PhoneNumber4
COM 
COM 
COM Version 1.0   29.11.2004   T. Kleinmann     
COM ---------------------------------------

from attglobals import *


#Tests command
ATCMD(1,'AT^SCNI')
WAIT FOR OK

#Call Stationary Phone 1
ATD PhoneNumber3;
WAIT FOR OK
MESSAGE('Please accept call on Stationary Phone!')

#Check status of call1
ATCMD(1,'AT^SCNI')
WAITFOR (1,'^SCNI: 1,1,',PhoneNumber3,',145')

#Establish second call
ATD SecondaryMobilePhoneNumber;
WAITFOR (2,'RING')
ATCMD(2,'ATA')
WAITFOR (2,'OK')

WAIT 1000

#Check status of call2
ATCMD(1,'AT^SCNI')
WAITFOR (1,'^SCNI: 1,0,',PhoneNumber3,',145',chr(13),chr(10),'^SCNI: 2,1,',SecondaryMobilePhoneNumber,',145')

#Establish third call
MESSAGE('Please call ',PrimaryMobilePhoneNumber,' from',PhoneNumber4)

AT^SCNI
WAITFOR (1,'^SCNI: 1,0,',PhoneNumber3,',145',chr(13),chr(10),'^SCNI: 2,1,',SecondaryMobilePhoneNumber,',145',chr(13),chr(10),'^SCNI: 3,2,',PhoneNumber4,',145')

MESSAGE('Please hang up all phones!')

AT
WAIT FOR OK